<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>订单列表-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="../static/css/font.css">
		<link rel="stylesheet" href="../static/css/weadmin.css">
		<script src="../lib/layui/layui.js" charset="utf-8"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>

	<body>
		<div id="resumeApp">
			<div class="weadmin-nav" style="visibility: visible;">
				<span class="layui-breadcrumb">
					<a href="">首页</a>
					<a href="">管理员查询</a>
					<a><cite>简历概况</cite></a>
				</span>
			
			</div>
			<div class="weadmin-body">
				<div class="layui-row">	
					简历搜索：(第一个时间是时间区间左端点，第二个时间是时间区间右端点，格式如 2022-1-1 22:30:56 采用24小时进制)
					<form class="layui-form layui-col-md12 we-search">
						<div class="layui-inline">
							<input type="text"  placeholder="简历ID" autocomplete="off" class="layui-input" v-model="resumeId" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="用户ID" autocomplete="off" class="layui-input" v-model="userId" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="用户名" autocomplete="off" class="layui-input" v-model="userName" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="简历摘要" autocomplete="off" class="layui-input" v-model="summary" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="(yyyy-MM-dd HH:mm:ss)" autocomplete="off" class="layui-input" v-model="createTime" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="(yyyy-MM-dd HH:mm:ss)" autocomplete="off" class="layui-input" v-model="updateTime" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="简历等级" autocomplete="off" class="layui-input" v-model="level" />
						</div>
						<div class="layui-inline">
							<input type="text"  placeholder="状态(0待审核,1通过)" autocomplete="off" class="layui-input" v-model="state" />
						</div>
						
						<button class="layui-btn" type="button" @click="resumeListClick">
							<i class="layui-icon layui-icon-search"></i>
						</button>
					</form>
				</div>
				<table class="layui-table">
					<thead>
						<tr>
							<th>
								<input class="layui-form-checkbox" lay-skin="primary" type="checkbox" />
							</th>
							<th>简历ID</th>
							<th>用户ID</th>
							<th>用户名</th>
							<th>简历摘要</th>
							
							<th>投递时间</th>
							<th>修改时间</th>
							<th>简历等级</th>
							<th>状态</th>
							<th>操作</th>
							
						</tr>
					</thead>
					<tbody>
						<tr v-for="(item,key) of resumeList">
							<td>
								<input class="layui-form-checkbox" lay-skin="primary" type="checkbox" />
							</td>
							<td>{{item.resumeId}}</td>
							<td>{{item.userId}}</td>
							<td>{{item.userName}}</td>
							<td>{{item.summary}}</td>
							<td>{{item.createTime}}</td>
							<td>{{item.updateTime}}</td>
							<td>{{item.level}}</td>
							<td class="td-status">
								<span class="layui-btn layui-btn-normal layui-btn-xs">{{item.state ? "审核通过":"待审核"}}</span>
							</td>
							<td class="td-manage">
								<a title="查看" onclick="WeAdminShow('订单详细信息','orgderDetails.html')" href="javascript:;">
									<i class="layui-icon">&#xe705;</i>
								</a>
								<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
									<i class="layui-icon">&#xe640;</i>
								</a>
							</td>
						</tr>
					</tbody>
				</table>
				
			</div>
		</div>
	
		<script src="../static/js/admin.js" type="text/javascript" charset="utf-8"></script>
	</body>

	<script src="../js/request.js"></script>
	<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
	
	<script type="text/javascript">
			var vm=new Vue({
				el:'#resumeApp',
				data:{
					ids: [],
					resumeId: "",
					userId: "",
					userName: "",
					summary: "",
					createTime: "",
					updateTime: "",
					level: "",
					state: "",
					resumeList: []
				},
				methods:{
					callbackResumeList(e) {
						if (e.flag && e.data != null && e.code == 20000) {
							this.resumeList = e.data
							console.log(e)
						} else {
							window.alert(e.message)
						}
					},
					resumeListClick() {
						resume = {}

						if (this.resumeId != "") {
							resume["resumeId"] = this.resumeId
						}

						if (this.userId != "") {
							resume["userId"] = this.userId
						}


						if (this.userName != "") {
							resume["userName"] = this.userName
						}

						if (this.createTime  != "") {
							resume["createTime"] = this.createTime
						}


						if (this.updateTime != "") {
							resume["updateTime"] = this.updateTime
						}


						if (this.summary  != "") {
							resume["summary"] = this.summary
						}
						

						if (this.state != "") {
							resume["state"] = this.state
						}

						if (this.level != "") {
							resume["level"] = this.level
						}
					
						// 异步回调
						getApprovalList(resume, this.callbackResumeList)
					}
					
				}
			})
		</script>
</html>
